package org.belkodevelop.photo.dao;

import org.belkodevelop.photo.domen.Photo;
import org.belkodevelop.user.domain.User;

import java.util.List;

/**
 * @author VMozolev
 */
public interface PhotoDAO {
    void addPhoto(Photo photo);
    Photo getPhoto(long id);
    List<Photo> getPhotos(long realtyId);
    boolean deletePhoto(long id);
    boolean userHavePhoto(long userId, long photoId);
    boolean userHavePhoto(long userId, long realtyId, long photoId);
    boolean setMainPhoto(long realtyId, Long photoId);
}
